// MethodThread.h: interface for the MethodThread class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_METHODTHREAD_H__65841D18_4777_47EA_BEDD_EDE595DC81F0__INCLUDED_)
#define AFX_METHODTHREAD_H__65841D18_4777_47EA_BEDD_EDE595DC81F0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "CommonLib\Thread.h"

class BaseMethodPerformer;

class MethodThread : public Thread  
{
public:
	MethodThread(BaseMethodPerformer * pPerformer);
	virtual ~MethodThread();

  virtual bool ExitInstance();
  virtual int Run();

  BaseMethodPerformer * GetpPerformer() const {return m_pPerformer;}

protected:
  BaseMethodPerformer * m_pPerformer;
};

#endif // !defined(AFX_METHODTHREAD_H__65841D18_4777_47EA_BEDD_EDE595DC81F0__INCLUDED_)
